import request from '@/utils/request'

// 查询传感器类型编码列表
export function listSensorTypeData(query) {
    return request({
        url: '/dictData/sensorTypeData/list',
        method: 'get',
        params: query
    })
}

// 查询传感器类型编码详细
export function getSensorTypeData(id) {
    return request({
        url: '/dictData/sensorTypeData/' + id,
        method: 'get'
    })
}

// 新增传感器类型编码
export function addSensorTypeData(data) {
    return request({
        url: '/dictData/sensorTypeData',
        method: 'post',
        data: data
    })
}

// 修改传感器类型编码
export function updateSensorTypeData(data) {
    return request({
        url: '/dictData/sensorTypeData',
        method: 'put',
        data: data
    })
}

// 删除传感器类型编码
export function delSensorTypeData(id) {
    return request({
        url: '/dictData/sensorTypeData/' + id,
        method: 'delete'
    })
}
